package com.example.springbootproxy.cglib;

import com.example.springbootproxy.interfaces.Good;
import com.example.springbootproxy.interfaces.GoodImpl;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;

/**
 * @author: wukangrong
 * @date: 2020/9/23 10:16
 * @description:
 */
@Data
@Slf4j
public class CglibTest {

    public static void main(String[] args) {
        ProxyFactory<GoodImpl> cglib = new ProxyFactory<>(new GoodImpl());
        Good good = cglib.getProxy(Good.class);
        log.info(good.test());
    }
}
